package com.wisdom.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.util.Map;

/**
 * @author ming
 * @ClassName WxLoginParam.java
 * @Description
 * @createTime 2021年04月25日 17:38:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WxLoginParam {

    @ApiModelProperty(value = "微信授权code",required = true)
    @NotEmpty(message = "cpde不能为空")
    private String code;

    @ApiModelProperty(value = "fromid",required = false)
    private String fromid;

    @ApiModelProperty(value = "用户信息",required = false)
    private Map userinfo;

    @ApiModelProperty(value = "openid",required = false)
    private String openid;

    @ApiModelProperty(value = "用户名/手机号码",required = false)
    private String username;
}
